// store.ts

import { createStore } from 'vuex'

interface State {
  studentId: string;
}

const store = createStore<State>({
  state: {
    studentId: '' // 初始化学号为空字符串
  },
  mutations: {
    SET_STUDENT_ID(state, studentId: string) {
      state.studentId = studentId
    }
  },
  // 其他配置项...
})

export default store
